import iViewTheme from 'iview-layout-themes'

const axios = iViewTheme.util.apiRequest
/**
 * 查询分类
 * @param order
 * @returns {*}
 */
export const getCategoryList = () => {
  return axios.request({
    url: 'wl/school/getCategoryList',
    type: 'get',
    php: true
  })
}
/**
 * 搜索产品
 * @param data
 * @returns {*}
 */
export const searchGoods = (data) => {
  return axios.request({
    url: 'wl/school/searchGoods',
    type: 'post',
    data: data,
    php: true
  })
}
export const saveStudentConten = (data) => {
  return axios.request({
    url: 'wl/school/saveStudentConten',
    type: 'post',
    php: true,
    data: data
  })
}

/**
 * 获取分类节点
 * @returns {*}
 */
export const getCategoryTree = () => {
  return axios.request({
    url: 'wl/school/getCategoryTree',
    type: 'get',
    php: true
  })
}
